import request from '@/config/request'
import type { PageInfo } from '@/config/types'
import type { OrderSearchForm, OrderCreateForm } from '@/config/form'

export default {
  searchList: (form: OrderSearchForm) => request.post('/front/orders/', form),
  detail: (no: string) => request.get(`/front/orders/${no}`),
  create: (form: OrderCreateForm) => request.post('/front/orders/create', form),
  cancel: (id: number) => request.delete(`/front/orders/${id}`)
}
